package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yl.auth.mapper.JiaShuMapper;
import com.yl.auth.model.entity.JiaShu;
import com.yl.auth.service.JiaShuService;
import com.yl.auth.service.LaorenService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 王庆梁
 * @datetime 2023/6/20 11:10
 * @description 类对象
 */
@Service
public class JiaShuServiceImpl extends ServiceImpl<JiaShuMapper, JiaShu> implements JiaShuService {

    @Resource
    private JiaShuMapper jiaShuMapper;

    @Resource
    private JiaShuService jiaShuService;

    @Resource
    private LaorenService laorenService;

    @Override
    public Page<JiaShu> selectPage(Page<JiaShu> jiaShuPage) {
        LambdaQueryWrapper<JiaShu> wrapper = new LambdaQueryWrapper<>();
        Page<JiaShu> page = jiaShuMapper.selectPage(jiaShuPage, wrapper);
        List<JiaShu> records = page.getRecords();
        for (JiaShu record : records) {
            Long laorenId = record.getLaorenId();
        }
        return null;
    }

    @Override
    public JiaShu getLR(Integer id) {
        return jiaShuMapper.getLR(id);
    }
}
